package com.donfu.system.service.house.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.donfu.system.mapper.house.HouseNoticeMapper;
import com.donfu.system.domain.house.HouseNotice;
import com.donfu.system.service.house.IHouseNoticeService;

/**
 * 通知信息Service业务层处理
 * 
 * @author donfu
 * @date 2021-12-01
 */
@Service
public class HouseNoticeServiceImpl implements IHouseNoticeService 
{
    @Autowired
    private HouseNoticeMapper houseNoticeMapper;

    /**
     * 查询通知信息
     * 
     * @param id 通知信息主键
     * @return 通知信息
     */
    @Override
    public HouseNotice selectHouseNoticeById(Long id)
    {
        return houseNoticeMapper.selectHouseNoticeById(id);
    }

    /**
     * 查询通知信息列表
     * 
     * @param houseNotice 通知信息
     * @return 通知信息
     */
    @Override
    public List<HouseNotice> selectHouseNoticeList(HouseNotice houseNotice)
    {
        return houseNoticeMapper.selectHouseNoticeList(houseNotice);
    }

    /**
     * 新增通知信息
     * 
     * @param houseNotice 通知信息
     * @return 结果
     */
    @Override
    public int insertHouseNotice(HouseNotice houseNotice)
    {
        return houseNoticeMapper.insertHouseNotice(houseNotice);
    }

    /**
     * 修改通知信息
     * 
     * @param houseNotice 通知信息
     * @return 结果
     */
    @Override
    public int updateHouseNotice(HouseNotice houseNotice)
    {
        return houseNoticeMapper.updateHouseNotice(houseNotice);
    }

    /**
     * 批量删除通知信息
     * 
     * @param ids 需要删除的通知信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseNoticeByIds(Long[] ids)
    {
        return houseNoticeMapper.deleteHouseNoticeByIds(ids);
    }

    /**
     * 删除通知信息信息
     * 
     * @param id 通知信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseNoticeById(Long id)
    {
        return houseNoticeMapper.deleteHouseNoticeById(id);
    }
}
